package com.basaji.manager;

import java.util.List;

import com.basaji.domain.pojo.BaseObject;

public interface IBaseManager {
	
	void save(BaseObject t);
	
	void update(BaseObject t);
	
	void saveOrUpdate(BaseObject baseObject);
	
	void delete(BaseObject baseObject);
	
	BaseObject get(Class<? extends BaseObject> clazz, Object id);
	
	<T> List<T> getList(String hql,Object[] values,int start, int size);
    
    int getCount(String hql,Object[] values);

}
